package com.fengwk.support.spring.boot.config;

import javax.servlet.MultipartConfigElement;

import org.springframework.boot.web.servlet.MultipartConfigFactory;
import org.springframework.context.annotation.Bean;

import com.fengwk.support.util.SystemUtils;

/**
 * 未生效配置
 * 
 * @author fengwk
 *
 */
@Deprecated
public abstract class AbstractMultipartConfig {

	@Bean
	protected MultipartConfigElement multipartConfigElement() {
	    MultipartConfigFactory factory = new MultipartConfigFactory();
	    factory.setLocation(SystemUtils.getTempDir());
	    return factory.createMultipartConfig();
	}
	
}
